package com.rent.bean;

public class Rent {
	
	private int rid;
	private String uname;
	private String rtime;
	private String btime;
	private double money;
	private int status;

	private String status_detailed;
	private double car_deposit;
	private double violation_deposit;
	private int car_deposit_status;
	private int violation_deposit_status;
	private String car_deposit_describe;
	private String violation_deposit_describe;



	public String getCar_deposit_describe() {
		return car_deposit_describe;
	}



	public void setCar_deposit_describe(String car_deposit_describe) {
		this.car_deposit_describe = car_deposit_describe;
	}



	public String getViolation_deposit_describe() {
		return violation_deposit_describe;
	}



	public void setViolation_deposit_describe(String violation_deposit_describe) {
		this.violation_deposit_describe = violation_deposit_describe;
	}

	public Car c = new Car();
	
	public Rent(int rid, String uname, int cid, String rtime, String btime, double money, int status,
			double car_deposit, double violation_deposit, int car_deposit_status, int violation_deposit_status,String car_deposit_describe,String violation_deposit_describe) {
		super();
		this.rid = rid;
		this.uname = uname;
		this.cid = cid;
		this.rtime = rtime;
		this.btime = btime;
		this.money = money;
		this.setStatus(status);
		this.car_deposit = car_deposit;
		this.violation_deposit = violation_deposit;
		this.car_deposit_status = car_deposit_status;
		this.violation_deposit_status = violation_deposit_status;
		this.car_deposit_describe=car_deposit_describe;
		this.violation_deposit_describe=violation_deposit_describe;
	}



	public int getCar_deposit_status() {
		return car_deposit_status;
	}



	public void setCar_deposit_status(int car_deposit_status) {
		this.car_deposit_status = car_deposit_status;
	}



	public int getViolation_deposit_status() {
		return violation_deposit_status;
	}



	public void setViolation_deposit_status(int violation_deposit_status) {
		this.violation_deposit_status = violation_deposit_status;
	}
	


	public Rent(int rid, String uname, int cid, String rtime, String btime, double money, int status,
			double car_deposit, double violation_deposit) {
		super();
		this.rid = rid;
		this.uname = uname;
		this.cid = cid;
		this.rtime = rtime;
		this.btime = btime;
		this.money = money;
		this.setStatus(status);
		this.car_deposit = car_deposit;
		this.violation_deposit = violation_deposit;
	}



	public double getViolation_deposit() {
		return violation_deposit;
	}


	public void setViolation_deposit(double violation_deposit) {
		this.violation_deposit = violation_deposit;
	}


	public double getCar_deposit() {
		return car_deposit;
	}


	public void setCar_deposit(double car_deposit) {
		this.car_deposit = car_deposit;
	}
	

	public Rent(int rid, String uname, int cid, String rtime, String btime, double money, int status) {
		super();
		this.rid = rid;
		this.uname = uname;
		this.cid = cid;
		this.rtime = rtime;
		this.btime = btime;
		this.money = money;
		this.setStatus(status);
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		switch (status) {
		case 1:
			setStatus_detailed("待支付");
			break;
		case 2:
			setStatus_detailed("支付完成");
			break;
		case 3:
			setStatus_detailed("租赁中");
			break;
		case 4:
			setStatus_detailed("已完成");
			break;
		case 5:
			setStatus_detailed("已取消");
			break;

		}
		this.status = status;
	}

	public String getStatus_detailed() {
		return status_detailed;
	}

	public void setStatus_detailed(String status_detailed) {
		this.status_detailed = status_detailed;
	}
	private int cid;
	public Rent() {}
	
	public Rent(int rid,String uname,String rtime,String btime,double money,int status,int cid) {
		this.rid=rid;
		this.uname=uname;
		this.rtime=rtime;
		this.btime=btime;
		this.setMoney(money);
		this.status=status;
		this.cid=cid;
	}
	
	
	public int getRid() {
		return rid;
	}
	public void setRid(int rid) {
		this.rid = rid;
	}
	public String getUname() {
		return uname;
	}
	public void setUname(String uname) {
		this.uname = uname;
	}
	public int getCid() {
		return cid;
	}
	public void setCid(int cid) {
		this.cid = cid;
	}
	public String getRtime() {
		return rtime;
	}
	public void setRtime(String rtime) {
		this.rtime = rtime;
	}
	public String getBtime() {
		return btime;
	}
	public void setBtime(String btime) {
		this.btime = btime;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}
	
	
	
	
}
